#!/usr/pkg/bin/bash
#
runtime_b = 4800
echo "bubble sort vA ../alice.txt"
mypid=$$
time ./tp1_a -b ../alice.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vA ../beowulf.txt"
mypid=$$
time ./tp1_a -b ../beowulf.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vA ../cyclopedia.txt"
mypid=$$
time ./tp1_a -b ../cyclopedia.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
#
echo "bubble sort vA ../elquijote.txt"
mypid=$$
time ./tp1_a -b ../elquijote.txt > out.txt &
cpid=$!
sleep $runtime_b
kill -s SIGTERM $cpid
############################################################
#
runtime_s = 1
echo "shellsort  vA ../alice.txt"
mypid=$$
time ./tp1_a -s ../alice.txt > out.txt &
cpid=$!
sleep $runtime_s
kill -s SIGTERM $cpid
#
echo "shellsort  vA ../beowulf.txt"
mypid=$$
time ./tp1_a -s ../beowulf.txt > out.txt &
cpid=$!
sleep $runtime_s
kill -s SIGTERM $cpid
#
echo "shellsort  vA ../cyclopedia.txt"
mypid=$$
time ./tp1_a -s ../cyclopedia.txt > out.txt &
cpid=$!
sleep $runtime_s
kill -s SIGTERM $cpid
#
echo "shellsort  vA ../elquijote.txt"
mypid=$$
time ./tp1_a -s ../elquijote.txt > out.txt &
cpid=$!
sleep $runtime_s
kill -s SIGTERM $cpid
#